package com.sky.mapper;

import com.sky.entity.Dish;
import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    //根据DishIds查询套餐
    List<Long> getSetmealIdsByDishIds(List<Long> ids);
    //新增套餐菜品
    void insertSetmealDish(List<SetmealDish> setmealDishes);
    //批量删除套餐菜品
    void deleteSetmealDish(List<Long> setmealIds);
    //根据SetmealId查询套餐
    List<SetmealDish> getSetmealDishesBySetmealId(Long SetmealId);
    //根据setmealId删除套餐菜品
    void deleteBySetmealId(Long setmealId);
    //根据setmealId查询菜品
    List<Dish> getDishesBySetmealId(Long setmealId);
}
